<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>前台首页</title>
</head>
<body>
	<?php include './view/header.php' ?>
    <div class="container" style="overflow: hidden">

        <table class="table table-hover">
            <thead>
                <tr>
                    <th>id</th>
                    <th>头像</th>
                    <th>名字</th>
                    <th>性别</th>
                    <th>生日</th>
                    <th>班级</th>
                    <th>个人简介</th>
                </tr>
            </thead>
            <tbody>
            <!--调用学生表student及班级表grade（两者关联）数据显示在前台首页-->
                <?php foreach ($data as $v):?>
                    <tr>
                        <td><?php echo $v["sid"];?></td>
                        <td><img src="<?php echo $v["profile"];?>" style="width: 100px;height: 100px;"></td>
                        <td><?php echo $v["sname"];?></td>
                        <td><?php echo $v["sex"];?></td>
                        <td><?php echo $v["birthday"];?></td>
                        <td><?php echo $v["gname"];?></td>
                        <td><?php echo $v["introduction"];?></td>
                    </tr>
                <?php endforeach;?>
            </tbody>
        </table>
        
    </div>
    <?php include './view/footer.php' ?>

    </body>
</html>